package com.li.sqlparse.entity;

import java.util.List;

/**
 * sql 中 set对象
 */
public class SetDeclareItemDto {

    /**
     * Set sql语句中定义的变量符号
     */
    private String target;

    /**
     * Declare sql语句中定义的变量
     */
    private String name;

    /**
     * set 变量定义的时候涉及到的column
     */
    private String column;

    /**
     * set 变量定义的给时候涉及到的table
     */
    private List<String> fromtable;

    /**
     * set 或者 declare
     */
    private String type;


    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getColumn() {
        return column;
    }

    public void setColumn(String column) {
        this.column = column;
    }

    public List<String> getFromtable() {
        return fromtable;
    }

    public void setFromtable(List<String> fromtable) {
        this.fromtable = fromtable;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "SetDeclareItemDto{" +
                "target='" + target + '\'' +
                ", name='" + name + '\'' +
                ", column='" + column + '\'' +
                ", fromtable=" + fromtable +
                ", type='" + type + '\'' +
                '}';
    }
}